package com.ssy.lingxi.marketing.api.model.response;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 进货单活动商品返回类
 * @author yzc
 * @version 2.0.0
 * @date 2021/9/1
 */
@Getter
@Setter
public class GoodsCartResponse implements Serializable {

    private static final long serialVersionUID = -2276489362703034192L;

    /**
     * skuId
     */
    private Long skuId;

    /**
     * 是否可用优惠券 0-否 1-是
     */
    private Integer canUseCoupon;

    /**
     * 个人最小限购数量
     */
    private Integer restrictMinNum;

    /**
     * 单独显示的活动详情(可以以此分组)
     */
    private GoodsActivityDetail topActivityDetail;

    /**
     * 活动详情集合
     */
    private List<GoodsActivityDetail> activityDetails;


    /**
     * 是否主商品
     */
    private Boolean isMain;
    /**
     * 父商品skuId(非主商品必填)
     */
    private Long parentSkuId;
    /**
     * 主商品参与的活动类型（换购、套餐、赠品）
     */
    private Integer activityType;
    /**
     * 套餐编号
     */
    private Integer groupNo;
    /**
     * 子商品换购价.
     */
    private BigDecimal price;

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Integer getRestrictMinNum() {
        return restrictMinNum;
    }

    public void setRestrictMinNum(Integer restrictMinNum) {
        this.restrictMinNum = restrictMinNum;
    }

    public GoodsActivityDetail getTopActivityDetail() {
        return topActivityDetail;
    }

    public void setTopActivityDetail(GoodsActivityDetail topActivityDetail) {
        this.topActivityDetail = topActivityDetail;
    }

    public List<GoodsActivityDetail> getActivityDetails() {
        return activityDetails;
    }

    public void setActivityDetails(List<GoodsActivityDetail> activityDetails) {
        this.activityDetails = activityDetails;
    }
}
